package com.jiajia;

/**
 *
 * new String 到底会创建几个对象
 * @author : zjj
 * @date : 2022/4/24 9:34
 */
public class Demo06NewString {
    public static void main(String[] args) {
        String str = new String("hello");
    }

    public static void test1(){
        String str = new String("a") + new String("b");

    }
}
